/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-07-16
 * Time: 18:55
 */
public class test3 {
    public boolean IsContinuous (int[] numbers) {
        // write code here
        int minNum = 14;
        int maxNum = 0;
        int[] hash = new int[14];
        for(int num:numbers){
            if(num!=0){
                hash[num]++;
                if(hash[num]>1){
                    return false;
                }

                minNum = Math.min(minNum,num);
                maxNum = Math.max(maxNum,num);
            }

        }
        return maxNum-minNum<=4;
    }
}
